const express =require("express")
const pass =require("../controller/limit").pass
//购物车接口
const routes=express.Router();
// 增加
routes.post('/add',pass,require('../controller/cartAPI').add);
// 删
routes.get('/del',pass,require('../controller/cartAPI').del);
// 改
routes.get('/updata',pass,require('../controller/cartAPI').updata);
// 查
routes.get('/all',pass,require('../controller/cartAPI').all);
//购物车数量
routes.get('/count',pass,require('../controller/cartAPI').count);
//暴露
module.exports=routes